<template>
  <el-container>
    <el-aside width="200px">
      <el-menu
        router
        default-active="4"
        class="el-menu-vertical-demo"

        background-color="#545c64"
        text-color="#fff"
        active-text-color="#ffd04b">

        <el-menu-item index="/table">
          <i class="el-icon-s-home"></i>
          <span slot="title">表格组件</span>
        </el-menu-item>

        <el-menu-item index="/tree">
          <i class="el-icon-setting"></i>
          <span slot="title">tree组件</span>
        </el-menu-item>

      </el-menu>


    </el-aside>
    <el-container>
      <el-header><svg-icon icon-class="form"/>Header - 公司logo-状态说明  <svg-icon icon-class="bank"/> </el-header>

      <el-main>

        <router-view />
        
      </el-main>
    </el-container>
  </el-container>
</template>

<style>
  .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    line-height: 160px;
  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>